package com.ruoyi.project.syl_Sxl.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import java.util.Objects;
/*
* 用户表    表名：syl_user
* */
public class HisUser extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long userId;//用户ID
    private String userName;//用户姓名
    @NotBlank(message = "所属不能为空")
    private String userDept;//所属科室
    private String userPhone;//手机号
    private String sex;//性别（0：男，1：女，2：未知）
    private Long userAge;//年龄
    private String userJourney;//是否排班（0：是，1：否）
    @NotBlank(message = "级别不能为空")
    private String userLevel;//级别
    @NotBlank(message = "背景不能为空")
    private String userEducation;//背景
    private String status;//状态
    private String userPassword;//密码



    /******添加字段名*******/
    private String level_name;//用户级别
    private String edu_name;//学历详情
    private String dept_name;//科室名称

    @Override
    public String toString() {
        return "HisUser{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userDept='" + userDept + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", sex='" + sex + '\'' +
                ", userAge=" + userAge +
                ", userJourney='" + userJourney + '\'' +
                ", userLevel='" + userLevel + '\'' +
                ", userEducation='" + userEducation + '\'' +
                ", status='" + status + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", level_name='" + level_name + '\'' +
                ", edu_name='" + edu_name + '\'' +
                ", dept_name='" + dept_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HisUser hisUser = (HisUser) o;
        return Objects.equals(userId, hisUser.userId) &&
                Objects.equals(userName, hisUser.userName) &&
                Objects.equals(userDept, hisUser.userDept) &&
                Objects.equals(userPhone, hisUser.userPhone) &&
                Objects.equals(sex, hisUser.sex) &&
                Objects.equals(userAge, hisUser.userAge) &&
                Objects.equals(userJourney, hisUser.userJourney) &&
                Objects.equals(userLevel, hisUser.userLevel) &&
                Objects.equals(userEducation, hisUser.userEducation) &&
                Objects.equals(status, hisUser.status) &&
                Objects.equals(userPassword, hisUser.userPassword) &&
                Objects.equals(level_name, hisUser.level_name) &&
                Objects.equals(edu_name, hisUser.edu_name) &&
                Objects.equals(dept_name, hisUser.dept_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, userDept, userPhone, sex, userAge, userJourney, userLevel, userEducation, status, userPassword, level_name, edu_name, dept_name);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserDept() {
        return userDept;
    }

    public void setUserDept(String userDept) {
        this.userDept = userDept;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getUserAge() {
        return userAge;
    }

    public void setUserAge(Long userAge) {
        this.userAge = userAge;
    }

    public String getUserJourney() {
        return userJourney;
    }

    public void setUserJourney(String userJourney) {
        this.userJourney = userJourney;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    public String getUserEducation() {
        return userEducation;
    }

    public void setUserEducation(String userEducation) {
        this.userEducation = userEducation;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getLevel_name() {
        return level_name;
    }

    public void setLevel_name(String level_name) {
        this.level_name = level_name;
    }

    public String getEdu_name() {
        return edu_name;
    }

    public void setEdu_name(String edu_name) {
        this.edu_name = edu_name;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public HisUser(Long userId, String userName, @NotBlank(message = "所属不能为空") String userDept, String userPhone, String sex, Long userAge, String userJourney, @NotBlank(message = "级别不能为空") String userLevel, @NotBlank(message = "背景不能为空") String userEducation, String status, String userPassword, String level_name, String edu_name, String dept_name) {
        this.userId = userId;
        this.userName = userName;
        this.userDept = userDept;
        this.userPhone = userPhone;
        this.sex = sex;
        this.userAge = userAge;
        this.userJourney = userJourney;
        this.userLevel = userLevel;
        this.userEducation = userEducation;
        this.status = status;
        this.userPassword = userPassword;
        this.level_name = level_name;
        this.edu_name = edu_name;
        this.dept_name = dept_name;
    }

    public HisUser() {
    }
}
